Ubuntu Environment

Ubuntu EnvironmentNew Ubuntu 18.04 install on x86_64 workstationInstall Ubuntu 18.04 Alongside With Windows 10 in Dual BootNew Ubuntu 18.04 install on x86_64 MSI GS65 laptopInstall Ubuntu 18.04 Alongside With Windows 10 in Dual BootInstalling system libraries and toolsUpdate UbuntuInstall the NVIDIA 440 driverCheck CPU temp with Psensor GUI toolDevelopment ToolsNvidia LibrariesCUDACuDNNVideo CodecOptiX - Ray Tracing EngineInstall Third Party LibrariesQt 5.15.0Install DatasetsInstall Neural Network modelsCLion buildCheckout the sourceCreate the CLion project


New Ubuntu 18.04 install on x86_64 workstation

Install Ubuntu 18.04 Alongside With Windows 10 in Dual Boot

  1. Download Ubuntu 18.04 ISO from https://www.ubuntu.com/#download
  2. Follow the procedure on https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-install-ubuntu-18-04-alongside-with-windows-10-or-8-in-dual-boot.html

New Ubuntu 18.04 install on x86_64 MSI GS65 laptop

Install Ubuntu 18.04 Alongside With Windows 10 in Dual Boot

  1. Use ubuntu 18.04 boot USB created from workstation install
  2. Follow the procedure on https://askubuntu.com/questions/1063910/installing-ubuntu-on-a-msi-gs65-freezes-at-login-screen

Installing system libraries and tools

Update Ubuntu

Install the NVIDIA 440 driver

Get the latest supported drivers from the Ubuntu repository

Open Softare & Updates program from the application menu. Click the Additional Drivers tab. You can see what driver is being used for NVIDIA and a list of proprietary drivers.

As you can see nvidia-driver-440 is available for the GeForce GTX 1080 Ti card. Select nvidia-driver-440 and click Apply Changes button to install the driver. Reboot the system to apply the changes.

After reboot, use the follow command to check the driver version

Check CPU temp with Psensor GUI tool

Install the needed tools

Start the detection of your hardware sensors:

Check the operations

Install Psensor

Development Tools

  1. CLion IDE - ubuntu software app

  2. Google Chrome Web Browser

    Go to https://www.google.com/chrome. Click the Download Chrome button. Select the first option (64 bit .deb for Debian/Ubuntu), click Accept and Install to download the installer google-chrome-stable_current_amd64.deb. Double click on the install file to install.

  3. CMake - ubuntu software app

  4. KDiff3 (File And Directory Comparison And Merge Tool) - ubuntu software app

  5. Doxygen

  6. Typora

  7. Subversion - command line (svn)

  8. SmartSVN

  9. 7Zip

  10. Build essential tools

  1. libjpeg

  2. libturbojpeg

  3. libz

  4. liblzma

  5. EGL

  6. GLES

  7. X11 development

  8. Cleanup

Nvidia Libraries

CUDA

  1. Download the CUDA 10.2 Ubuntu installer

  2. Install CUDA 10.2 using the installer

  3. Add CUDA 10 to the development search path by adding the following lines to .bashrc

  4. Check NVIDIA CUDA Compiler

CuDNN

  1. Download the cuDNN pre-built libraries for Linux, CUDA version 10.2 cudnn-10.2-linux-x64-v7.6.5.32.tgz from https://developer.nvidia.com/rdp/cudnn-download using the cuDNN Library for Linux link. Move cudnn-10.2-linux-x64-v7.6.5.32.tgz to $HOME/Developer/Projects/installers

  2. Add the header files and pre-built libraries to the CUDA install

Video Codec

  1. Download the Video Codec SDK 9.1 pre-built libraries for Linux, Video_Codec_SDK_9.1.23.zip from https://developer.nvidia.com/nvidia-video-codec-sdk/download to $HOME/Developer/Projects/installers and unzip to Video_Codec_SDK_9.1.23

  2. Add the header files and pre-built libraries to the CUDA install

OptiX - Ray Tracing Engine

  1. Download the OptiX SDK 7.0 pre-built libraries for Linux, NVIDIA-OptiX-SDK-7.0.0-linux64.sh from https://developer.nvidia.com/designworks/optix/download to $HOME/Developer/Projects

  2. Install OptiX SDK 7.0 using the installer

Install Third Party Libraries

  1. Download the following third party libraries for Ubuntu 18.04 from the BAP development website at Third party libraries downloads (Will need your username and password to access the site)

  2. Move the downloaded files to $HOME/Developer/Projects directory and and extract with the 7-Zip Extract Here command from the file browser.

Qt 5.15.0

  1. Download the latest Qt unified windows installer from https://www.qt.io/download-qt-installer

  2. Run the unified installer using open source user login. You will need to register as a QT Open Source user at the Qt website.

  3. Select $HOME/Developer/Projects/QT as the install directory

  4. Select Qt 5.15.0 packages Desktop gcc 64-bit and QtCharts and run install

  5. Create symbolic link for install directory

Install Datasets

  1. Download the following Datasets for the BAP development website at Data sets (Will need your username and password to access the site)

  2. Move the downloaded files to $HOME/data/ImageData directory and and extract with the 7-Zip Extract Here command from the file browser.

Install Neural Network models

  1. Download the following models for the BAP development website at Models (Will need your username and password to access the site)

  2. Move the downloaded files to $HOME/networks directory and and extract with the 7-Zip Extract Here command from the file browser.

CLion build

Checkout the source

Use either the SmartSVN or TortoiseSVN svn clients to checkout the BAP source code from svn://3.14.90.147/bap/trunk to `$HOME/Projects/bap (Will need your username and password to access this repository).

Create the CLion project

  1. Create directory `$HOME/Projects/bap-clion
  2. ...